public function masteryPages($identities)
	{
		$ids = $this->extractIds($identities);
		$ids = implode(',', $ids);

		$array     = $this->request('summoner/'.$ids.'/masteries');
		$summoners = [];
		foreach ($array as $summonerId => $data)
		{
			$masteryPages = [];
			foreach ($data['pages'] as $info)
			{
				if ( ! isset($info['masteries']))
				{
					// seting the talents to an empty array
					$info['masteries'] = [];
				}

				$masteriesInfo = $info['masteries'];
				unset($info['masteries']);
				$masteryPage = $this->attachStaticDataToDto(new MasteryPage($info));
				// set masterys
				$masteries = [];
				foreach ($masteriesInfo as $mastery)
				{
					$id             = $mastery['id'];
					$mastery        = $this->attachStaticDataToDto(new Mastery($mastery));
					$masteries[$id] = $mastery;
				}
				$masteryPage->masteries = $masteries;
				$masteryPages[]         = $masteryPage;
			}
			$summoners[$summonerId] = $masteryPages;
		}

		$this->attachResponses($identities, $summoners, 'masteryPages');

		if (is_array($identities))
		{
			return $summoners;
		}
		else
		{
			return reset($summoners);
		}
	}