nit: I'd rather use a comment just before the function definition, saying when it returns false and it returns true.