Refactor #check? method