Updated check for Predicates when using RequireJS or NodeJS