private function check_path()
 {
     if (!fw_ext_seo_sitemap_try_make_file_writable($this->get_path())) {
         if (is_admin()) {
             FW_Flash_Messages::add('fw-ext-seo-sitemap-try-edit-file', sprintf(__('Could not create/write the %s. File is not writable', 'fw'), $this->get_path()), 'warning');
         }
         return false;
     }
     return true;
 }
 /**
  * Create the simep XSL style file
  */
 private function create_xsl()
 {
     $file_path = fw_ext_seo_sitemap_get_home_path() . 'sitemap-xsl.xsl';
     if (!fw_ext_seo_sitemap_try_make_file_writable($file_path)) {
         if (is_admin()) {
             FW_Flash_Messages::add('fw-ext-seo-sitemap-try-modify-file', sprintf(__('Could not create/write the %s. File is not writable', 'fw'), $file_path), 'warning');
         }
         return;
     }
     $file = fopen($file_path, 'w');
     fwrite($file, fw_render_view($this->locate_view_path('sitemap-style')));
 }