I need (as far as i know) to use a function with popupTemplate content in order to filter out null values from appearing in my popup. Some of the fields I need are in related tables. Is there a way to use related data in that content function?