Ad
  • Custom User Avatar

    I see this sort of thing a lot in code, and it's redundant. You should just return the original conditional check. Consider it as if it were the folowing:

    if (isTrue)
      return true;
    else
      return false;
    

    The above would be better written:

    return isTrue;
    

    Same idea with what is written in this solution.