Fix for “Cannot use isset() on the result of a function call”