Adding check for empty footer