don't check condition twice