If the developer has disabled the validation, you don't need to do any of the operations above. You may want to put this check earlier than this line.