Use strict in_array check to prevent freading a string in the case the a string input value is the same loosly typped as one of the stream identifiers.