TypeError thrown
Illegal offset type in isset or empty