look like there are 2 space at: if [[  "$(isEmptyString ${method})"  (after [[). However, it's not a big deal