handle case where rubies comes back nil