Fixed typo: instanceof statement forgot exlamation