Add position_valid? method