public static function _parse_conditions($rights)
	{
		if (is_array($rights))
		{
			return $rights;
		}

		if ( ! is_string($rights) or strpos($rights, '.') === false)
		{
			throw new \InvalidArgumentException('Given rights where not formatted proppery. Formatting should be like area.right or area.[right, other_right]. Received: '.$rights);
		}

		list($area, $rights) = explode('.', $rights);

		if (substr($rights, 0, 1) == '[' and substr($rights, -1, 1) == ']')
		{
			$rights = preg_split('#( *)?,( *)?#', trim(substr($rights, 1, -1)));
		}

		return array($area, $rights);
	}