Make sure $sites is an array