Check if the argument is an atom.