add checks for emptiness to objects