Shoudn't this return a value instead of an empty array? Losing the data completely does not seem right to me. You can also return the value as array like this: `return array($value);`