Is it possible to return null if I get an empty array