Type php type null. Trying to access array offset on value of type null. ошибка php. trying to access array offset on value of type bool.