add check for collection in node?