Added check that delegate responds to selector