RF-13930: add check for empty list