protected function isWritable($file)
    {
        return (bool) ((file_exists($file) && is_writable($file)) || (!file_exists($file) && is_writable(dirname($file))));
    }
protected function isWritable($file)
    {
        return (bool) ((file_exists($file) && is_writable($file)) || (!file_exists($file) && is_writable(dirname($file))));
    }
protected function isWritable ( $ file ) { return ( bool ) ( ( file_exists ( $ file ) && is_writable ( $ file ) ) || ( ! file_exists ( $ file ) && is_writable ( dirname ( $ file ) ) ) ) ; }
Is data writeable.

@access protected
@param $file
@return boolean
Is data writeable .