Javascript, Sharepoint and web part

I have a rss feed that I would like to incorporate into Sharepoint as the web part. However, I am new and was looking for a way to if my rss feed shows nothing, the web part will not show but if there is something coming from the rss feed, then it will show in that web part?

Any suggestions, tutorials?