[ticket/9801] Use empty instead of sizeof

PHPBB3-9801