render only if the provided command is not null