private boolean isOutputDirAvailable(){
  return outputDir != null && (outputDir.exists() && outputDir.isDirectory() || outputDir.mkdirs());
}

private boolean isOutputDirAvailable ( ) { return outputDir != null && ( outputDir . exists ( ) && outputDir . isDirectory ( ) || outputDir . mkdirs ( ) ) ; }
returns true if the output directory is available . attempts to create the directory if it does not exist .
