Function to check whether a field has an empty value or not. Function used for checking whether a field contains a value or not.