public static function isOptionsHash($array, $throw = true)
	{
		if (Arry::isHash($array))
		{
			$keys = array_keys($array);
			$diff = array_diff($keys,self::$validOptions);

			if (!empty($diff) && $throw) {
				throw new ActiveRecordException("Unknown key(s): " . join(', ',$diff));
			}

			$intersect = array_intersect($keys,self::$validOptions);

			if (!empty($intersect)) {
				return true;
			}
		}
		return false;
	}