Fix broken `is` function