Ok, I assume this var name works with both the new and old modals as you are supporting both through a WP version check. 
Will review within 24 hours.