Add if statement around ATOM feed block