_die_if_undefined handles undefined access_allowed_for variables