nil check for containers without ports