update isWindow https://github.com/RubyLouvre/avalon/issues/80