You have a method to do this check (which is questionable by itself since it's an == comparison only), but you're not using it in here.