Checking for empty records, to avoid unwanted behaviour.