i wouldn't use a variable - just return true or false as soon as you know the answer