fix bug in page title
expand if condition to use brackets