I guess we cannot use feature detection here. But still if we need a method for detecting the IE, it should be probably in a separate module, as it's not modals-specific. That way we won't have to repeat it in other places. And we won't forget to go through all the places in the code to make the updates in case next version of IE will make this workaround unnecessary