Added a conditional if no sidebar content has been added.