Added the "IsEmpty" method.