Here you're breaking to return True, while in the else below you're returning immediately - imho you should return True here, it would make it clearer.