If empty/doc

This module supports Template:If empty. See here for test cases.