preventing for when relation is nil or doesnt respond to metadata