[4.2] Adding hasNot And whereHasNot Method

See #3413 
The callback should be typehinted as a closure.