added .blank? instead of .empty? as the error came back