```preg_match``` returns an integer. Should explicitly cast to a boolean here rather than implicit.