Check existence before calling methods on object