TypeError thrown

sizeof(): Argument #1 ($value) must be of type Countable|array, false given