optimizes check for optional delegate methods

Signed-off-by: Ronny Gerasch <rg@ergoon.com>