Check attribute for undefined