Adding respondsToSelector Method

Just making code cleaner by checking if delegate responds to delegate functions (respondsToSelector) before calling them