Conditionally removing footer