Print error if JSON array is empty