validate nested unless null