Refactor isFilter return statement.
Merge pull request #78 from GaryJones/isFilter-refactor

Refactor isFilter return statement