Check struct is an atom for proper type check