You can combine these two php sections.