[ticket/11717] Add 'has' to boolean variable and reduce line length

PHPBB3-11717