if (!$noteText || empty($noteText)) {
            throw new Exception("No note text given"); 
        }