Use short-circuting logic here (FindBugs report)