public Media checkMedia(String title, String type){
		if(mediaList.size() == 0){
			mediaList = MediaDAO.getAllMedia();
		}
		for(Media m: mediaList){
			if(m.getTitle().equals(title) && m.getType().toUpperCase().equals(type)){
				return m;
			}
		}
		return null;
	}