correctly check if lastFilter is undefined

\+ has precedence hover ||