protected static function selectType($views, $type)
	{
		if(!is_array($views))
		{
			return $views;
		}

		if($type === FALSE)
		{
			return $views;
		}

		if(!$type)
		{
			return current($views);
		}

		if(!isset($views[$type]))
		{
			return null;
		}

		return $views[$type];
	}