It's not empty, get_versions checks to make sure that it gets an array with both 'stable' and 'unstable' within it, so if it doesn't throw an exception it did get the file and the only reason the array would be empty at this point would be if someone nubs the versions.json file and empties the stable or unstable array.