I guess the return value of the script should be success, and the grep expression would return nosuccess, when nothing matches.