handle if (exists) / if(nonempty) in dynamic {}