Adding logic to hide comment form when comments are turned off