Refactor isFilter return statement

See https://github.com/rmccue/WP-Parser/pull/76/files#r10409085