I think the method should either return null (no items) or an array. Now you are mixing return types.