entityCondition check if a field is not empty
You can do this by 

$query-&gt;condition('field', '', '&lt;&gt;');


See: https://api.drupal.org/api/drupal/includes%21database%21select.inc/function/SelectQuery%3A%3Acondition/7.x

If this doesn't answer your question you need to. Be more specific.