Feature/collections

Added a lookup and get_nested function for safely accessing data within collections.