combined an 'if' in the footer