Use the $() instead of `` syntax for evaluating inside of the if statement.  Test for grep to return a count of zero rather than a zero length string.  Add a comment