public boolean isQueryEmpty(){
  return query == null || EMPTY_QUERY.equals(query);
}

public boolean isQueryEmpty ( ) { return query == null || EMPTY_QUERY . equals ( query ) ; }
tests if a query was set . empty query means " " .
