.hasDelegate checks for the presence of a delegate