public function isLast($key)
	{
		if ($this->rows && $this->count())
		{
			return $key == array_slice($this->rows, -1, 1)[0]->getPkValue();
		}

		return false;
	}
public function isLast($key)
	{
		if ($this->rows && $this->count())
		{
			return $key == array_slice($this->rows, -1, 1)[0]->getPkValue();
		}

		return false;
	}
public function isLast ( $ key ) { if ( $ this -> rows && $ this -> count ( ) ) { return $ key == array_slice ( $ this -> rows , - 1 , 1 ) [ 0 ] -> getPkValue ( ) ; } return false ; }
Checks to see if the current item is the last in the list

@param   int  $key  The key to check against
@return  bool
@since   2.1.0
Checks to see if the current item is the last in the list