Account for NIL values in result