use ressources's ids as key in collection
check whether node exists before to parse it in the magic getter