0 - Call to a member function def() on null