public static function insertElement(array $array, $element, $position) {
		$res = array_slice($array, 0, $position, true);
		
		if(is_array($element)) {
			$res = array_merge($res, $element);
		} else {
			array_push($res, $element);
		}
		
		$res = array_merge($res, array_slice($array, $position, count($array) - 1, true));
		
		return $res;
	}