[feature/avatars] Use empty() instead of sizeof()

PHPBB3-10018