if (exists $sentences->{$someInput}) { push (@referencedSentences1, $sentences->{$someInput});}