[4.2] Adding hasNot And whereHasNot Method

See #3413 
Please keep the new line.