Added function to check if a chunk is being loaded