Improves the is function