public static function _dir(string $folder) : bool
  {
    if (is_dir($folder)) {
      return true;
    }

    mkdir($folder, 0777, true);
    return false;
  }
public static function _dir(string $folder) : bool
  {
    if (is_dir($folder)) {
      return true;
    }

    mkdir($folder, 0777, true);
    return false;
  }
public static function _dir ( string $ folder ) : bool { if ( is_dir ( $ folder ) ) { return true ; } mkdir ( $ folder , 0777 , true ) ; return false ; }
Create folder it doesn't exist.

@param  string $folder
@return bool
Create folder it doesn t exist .