if it is a string, then `$methods = [$methods];`