added possibility to get collection when only one elt is present in get method