StructKeyExists( url,“customer” )
is simply more efficient, especially under load
Imagine you are Lucee, and how you are going to execute that statement.
IsDefined
- does some string parsing
- figures out it’s an url variable
- then it’s going to do a structKeyExists on url to see if customer exists.
While structKeyExists only does step 3.