They use isset for 2nd part (else statement)
if ( \is_array( $key ) )
{
foreach( $key as $k )
{
if ( \in_array( $k, array_keys( $this->words ) ) )
{
$return[ $k ] = $this->words[ $k ];
}
..........
}
..........
}
else
{
if ( isset( $this->words[ $key ] ) )
{
return $this->words[ $key ];
}
..........
}
If I’m not mistaken there was a topic (or bug report) about this.
In the previous versions the code looks like
if ( is_array( $key ) )
{
foreach( $key as $k )
{
if ( in_array( $k, array_keys( $this->words ) ) )
{
$return[ $k ] = $this->words[ $k ];
}
..........
}
..........
}
else
{
if ( in_array( $key, array_keys( $this->words ) ) )
{
return $this->words[ $key ];
}
..........
}
So IPS changed ELSE part