Illegal offset type in isset or empty

Added missing spot
And spaces for code consistency