final public static function removeEmptyData(array $routes):array
    {
        $c = count($routes);
        for ($i = 0; $i < $c; $i++) {
            if (trim($routes[$i]) == "" || $routes[$i] == null || empty($routes[$i])) {
                unset($routes[$i]);
            }
        }
        return ($routes);
    }
final public static function removeEmptyData(array $routes):array
    {
        $c = count($routes);
        for ($i = 0; $i < $c; $i++) {
            if (trim($routes[$i]) == "" || $routes[$i] == null || empty($routes[$i])) {
                unset($routes[$i]);
            }
        }
        return ($routes);
    }
final public static function removeEmptyData ( array $ routes ) : array { $ c = count ( $ routes ) ; for ( $ i = 0 ; $ i < $ c ; $ i ++ ) { if ( trim ( $ routes [ $ i ] ) == "" || $ routes [ $ i ] == null || empty ( $ routes [ $ i ] ) ) { unset ( $ routes [ $ i ] ) ; } } return ( $ routes ) ; }
Remove blank data in array
@param array $routes Route array
@return array Array cleared
Remove blank data in array