public static function isCoordinatesInRadius(array $coordinates, array $center, $radius): bool
    {
        list($lat1, $long1) = $center;
        list($lat2, $long2) = $coordinates;

        $distance = 3959 * acos(cos(self::radians($lat1)) * cos(self::radians($lat2)) * cos(self::radians($long2) - self::radians($long1)) + sin(self::radians($lat1)) * sin(self::radians($lat2)));

        return ($distance <= $radius);
    }