moved shouldPrepare func to be a Query type method