Change order of equals check.