Refactored since there is no way to compare two Objective-C blocks.