fix #4, when filters are undefined
should ofcourse be array
Merge pull request #5 from mewwts/refactor

Hopefully fixes #4.