Checking to see what sort of context it is then performing things based on that

If the context is a NSMainQueueConncurrency, perform the action otherwise wrap it in performBlock: