Could combine this whole if & condition into a single return statement.