They were together when baby was conceived that can be easily known. Bani has mentioned couple of times about baby being theirs or being their Pyaar ki nishani.JW has accepted that.
So even if he doubts BAni's love🤢😡. ( that it self is stupid but). He won't doubt the baby's parentage.