I have three arrays, two of which come from JSON.
I need to check if each array is not nil and the count is greater than 0. If any are greater than 0 display "Hello World" else display "Boo".
<% if !@arrayOne.nil? && @arrayOne.count > 0 || !@user_json[:user_stuff].nil? && @user_json[:user_stuff].count > 0 || !@user_json[:more_user_stuff].nil? && @user_json[:more_user_stuff].count > 0 %>
<h1>Hello World</h1>
<% else %>
<h1>Boo</h1>
<% end %>
I need some help refactoring this code and would like to learn other ways to approach this.