Return nil after loop and also in unless block in Ruby
Ruby has a detect method, so your entire method can be replaced with
members.detect { |member| member.name == member_name }

As an aside, each works fine for empty arrays, hence the empty? check you have is completely unnecessary even if you keep the explicit loop.