Most robust checking if the schema object is value or a validator