Better check of prepValForOutput