Won't this result in a notice if condition in if above is not true?