added check when unbinding if there actually is something to unbind.