Add foreachifempry snippet

Added the foreach with ifempty command. Removed the unnecessary comments
from all snippets.