remove old has_variable function call