Update isInternal function for IE