Case Empty in Web3 Json Array Output

SOLVED

i have found another solution using Enum.empty?() instead of != nil