Add check for result.empty? on resource index calls.