Added Delegate::isEmpty to check wheter a delegate has any callback attached to it