The tense used over there is not simple past. It's a conditional clause, second type is used so it's unreal present. Wait a minute, am I wrong?
well, if it's in past, then you must put it as "arkadaşlık idiyse" -this may seem strange to you, but it is real.