$args[0] == "ptt" twice?=\

Why do you need to check it twice?:)