The function checks whether the column is valid or not.
A State true indicates, that the function was executed successfully. Otherwise state is false.