Fixed implementation of is: operator