check block object whether is nil before call, or will cause crash