isDefined; structure with a numeric key

StructKeyExists( url,“customer” ) is simply more efficient, especially under load

Imagine you are Lucee, and how you are going to execute that statement.

IsDefined

  1. does some string parsing
  2. figures out it’s an url variable
  3. then it’s going to do a structKeyExists on url to see if customer exists.

While structKeyExists only does step 3.