private static function checkElasticIp($ipaddress, \Scalr\Service\Aws $aws) { try { $info = $aws->ec2->address->describe($ipaddress); if (count($info)) { return true; } else { return false; } } catch (Exception $e) { return false; } }