Check for primary key so a notice isn't show