dding a check for a valid JSON response from the weather API in !weather