Change order of check.