Only render element if there is something to render