refactor skip_prefix to return a boolean