Refactored hasSlave, added isSlave