simplify seek() failure check