Function for checking valid parameters function isValid(value) { return value !== null && value !== undefined && value !== “”; }