[ticket/10411] Add return values to add/delete function

PHPBB3-10411