src/OwpDkim.inc.php
static public function validateDkim($domain, $file_path)
    {

        $files = self::keyFileNamePath($domain);

        if(file_exists($file_path.$files["public_key_filename"]) && file_exists($file_path.$files["private_key_filename"])) {
            return true;
        } else {
            ob_clean();
            echo self::createDkimRecords($domain, $file_path);
            die();
        }

    }
static public function validateDkim($domain, $file_path)
    {

        $files = self::keyFileNamePath($domain);

        if(file_exists($file_path.$files["public_key_filename"]) && file_exists($file_path.$files["private_key_filename"])) {
            return true;
        } else {
            ob_clean();
            echo self::createDkimRecords($domain, $file_path);
            die();
        }

    }
validateDkim

@method validateDkim($domain, $file_path)
@access public
@param  string $domain    The domain to generate DKIM keys.
@param  string $file_path File path used to store the keys and instructions.
@return boolean Dkim exist.

@author  Brian Tafoya
@version 1.0