Pergunta de entrevista da empresa Redgate Software

Why should you check if a vector / array is empty before executing core function code?