checking if file chains exists