fix #304 - exists checks for undefined in dynamic blocks