make sure there are elements in details