Updated function isEpisode() -> getType()

Needed in more cases and it's better to return the type and outside we can check it