no isEmpty() before Android 9...

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>