I actually prefer that approach anyway. It lacks validation (your id could be wrong) but that also frees you up from other restrictions. It may help to have a try-catch block in the script that does some alerting if the search does not exist, though, as a precaution.