Trying to be consistent with bash, fix checking error.