added check objects for empty