E_NOTICE - Trying to get property 'title' of non-object
E_NOTICE - Trying to get property 'modules' of non-object
E_WARNING - Invalid argument supplied for foreach()