Check attribute instead of swallowing error