It's bash magic. `grep` exits with a status code of 1 if it finds no matches. This returns a 0 status code in all cases.