Our site is fairly young so there weren’t too many URLs so I updated them manually also. Thanks!
Memories of my college logic course!
Are you testing that it is not a home page and it is not a single post?
The coding becomes clearer when you first word it that way.
Being a newcomer to WP, templates, html and PHP I don’t know those coding conventions but that’s how I approached that logic in earlier languages.
This is exactly my question also.