ERROR
500
It's not you, it's me.
count(): Parameter must be an array or an object that implements Countable