implemented where clause splitter

maybe use isFunction from TestingHelpers