Is this checking sufficient? What if the attribute has `''`? We deal with a lot of empty strings coming from the dashboard.