diff --git a/src/Translatable.php b/src/Translatable.php index a08462e9710a13721ff82618275db293c286f211..0fada96593810685af7f2a0f497d1878a37ee28f 100644 --- a/src/Translatable.php +++ b/src/Translatable.php @@ -131,7 +131,7 @@ class Translatable { $results = []; foreach ( $this->languages as $language ) { - if ( !in_array( $language, $this->translations, true ) ) { + if ( !array_key_exists( $language, $this->translations ) ) { continue; }