Better has_record? definition using #element