checking if $('#deploymentSelect').val() is defined