I think it might be more readable to use empty? here.
empty? is also a really cheap query and will be cached anyway so I wouldn't bother with the temp variable in this case either