Adding arguments support to isEmpty.