Changed checks to Yoda conditions.