I think this condition can be removed. The return value is an empty array already.