Added a simple check to verify tile existence