Too many levels of inline conditionals. Please flatten out in if blocks with early returns.