Move the actual checking outside template method
Move the actual checking outside template method

This will make it easier in future for checking other elements.

FreshRSS/simplepie,wikidi/simplepie,songfj/simplepie,simplepie/simplepie,mblaney/simplepie,ropik/simplepie,skyzyx/simplepie,blat/simplepie,simplepie/simplepie,blat/simplepie,Alkarex/simplepie,blat/simplepie,songfj/simplepie,songfj/simplepie,barryvdh/simplepie,mblaney/simplepie,barryvdh/simplepie,skyzyx/simplepie,wikidi/simplepie,Alkarex/simplepie,wikidi/simplepie,barryvdh/simplepie,FreshRSS/simplepie,Alkarex/simplepie,ropik/simplepie