added 'if' statement to Deployment Create Script