Replace if he knew with whether he knew .
"Whether" is used to introduce alternatives or express doubt, especially in formal contexts.
'Whether’ should be used in place of ‘if since ‘whether or’ is the correct correlative.
'If' is used when there is a condition in the sentence.