Check head of an expression

I think you are looking for Meta.isexpr.

4 Likes