fixed yoda condition check