code: public boolean isValueSet(String s) {
          return (s != null && s.trim().isEmpty() == false) ? true : false;
      }
docs: Checks if a value is null or empty.
  
  @param s The variable need to be checked.
  @return <true> if the variable is not null and not empty. Otherwise return <code>false</code>.