if (is_null($noteText)) {
            throw new InvalidArgumentException("No note text was provided"); 
        }