diff --git a/src/Webpatser/Countries/Countries.php b/src/Webpatser/Countries/Countries.php index ca21d19..0491294 100644 --- a/src/Webpatser/Countries/Countries.php +++ b/src/Webpatser/Countries/Countries.php @@ -40,7 +40,7 @@ public function __construct() protected function getCountries() { //Get the countries from the JSON file - if (sizeof($this->countries) == 0){ + if (!$this->countries || sizeof($this->countries) == 0){ $this->countries = json_decode(file_get_contents(__DIR__ . '/Models/countries.json'), true); }