Don't use empty() to check for empty documents
empty() is inconsistent for checking if the document is empty (i.e. empty([]) != empty(new stdClass)). Simply check that the option has been set in order to include it in the command.
Showing
Please
register
or
sign in
to comment