A hook for array that emit events when any elements get in or get out