Restoring isAnom method