Check if methods are set before calling them