Check return length of grep to catch interger(0)