protected boolean isValidFragment(String fragment){
  if (fragment == null) {
    return true;
  }
  return isOff(NO_FRAGMENTS);
}

protected boolean isValidFragment ( String fragment ) { if ( fragment == null ) { return true ; } return isOff ( NO_FRAGMENTS ) ; }
returns true if the given fragment is null or fragments are allowed .
