I believe this should be "asBoolean(true)" since a deployment is persistent unless explicitly configured otherwise.