add presence condition priority TODO
extract getItemPresenceCondition
add presence conditions to ast nodes