added check when sending delegate methods

Signed-off-by: Frederik Jacques <frederik@the-nerd.be>