Extract isMock function from condition in shouldReceive