router checking for empty