An alternative to array_unshift() would be to check the second position of an array to see if it has any value in it. Remembering that an array starts at postion 0, we want to check the array at position 1.
$test_item="Item_to_be_tested";
$array_test=explode(".",$test_item);
if ($array_test[1] == "")
{
//display the item
}
Mind you this code should work, as long as your first and second dots don't immediately follow each other. In other words 123.456.abc would be properly filtered out, but 123..456 would not.