TypeError thrown

Unsupported operand types: array + null