checking if object is extensible before observing