Fix isset for models/records