Would you still text a girl-friend if you had a girlfriend?

I'm the friend in this situation and he's never mentioned he has a girlfriend to me. He once told me "I've never done (this and that) to women I've been in love with before but the right one might get me to" so I assumed he was single. I enjoy his company and we've been texting a lot. He flirts occasionally but he never crossed a boundary. Like he calls me "cute" every now and then and tells me he misses me or that I've been on his mind, and sometimes we have a virtual movie night together. And when he goes MIA for a while, he reaches out apologizing and justifying his absence. But now that I've learned that he's taking, I'm questioning where I stand in his life. I don’t want to confront him about it because maybe I'm the one who was misreading things. Maybe that's his way of being friendly. That's why I'm asking you, guys: Would you still text a girl as a friend even if you had a girlfriend? I never met him in person, we text online, but he has a girlfriend in real life.
Would you still text a girl-friend if you had a girlfriend?
Updates
1 y
This is a bit of a clarification. We met on a Discord server, and his girlfriend is the owner of that server, most of the members are girls and we often have discussions or joke around, and very recently she openly addressed him as her boyfriend and that’s how I found out. And no, he's not friends with other girls (he doesn't DM them) so I think he's being genuine with me, especially when he spends a lot of his time with me engaging in deep conversations and share things.
Updates
1 y
So I was talking to his girlfriend as a regular participant member of the server and she's really friendly. She talks about her boyfriend a lot but without identifying him. She's really sweet. Recently we were talking about dating apps and she mentioned that she met him online and haven't met yet. Also, he went MIA for 2 weeks (mental health issues maybe?)
Would you still text a girl-friend if you had a girlfriend?
Post Opinion