There is no need for the is_atom here since you are matching exactly (=:=) against atoms anyway. The same with binaries below.