Hides table whem object is empty
Validates file extension