Avoid calling undefined methods