check_hash($hash); if($check_result == "HashNotFound") { echo "Hash not found"; return false; } else if ($check_result == "HashFound") { return true; } } }