I always forget the exact right check to do here. Should it be if 'console' in window?