Actually, L33 will fail if location is not a Location; so, you may as well remove L36 (the if)