[4.2] Adding hasNot And whereHasNot Method

See #3413 
Don't align this.