API Help - How am i supposed to check if an Episode has a downloaded file?

How can i check if an random episode has a downloaded file available?

I thought the id of the EpisodeFile and the id of the Episode are the same but it seems they are different so i dont have any clue on how to check if they are the same.

Nevermind found it myself. I totally forgot a episode has an EpisodeFileId