Change function IsEmpty to IsEmpty const