This could be slightly improved as 

if(!shouldCheck) {