Could you, please, reduce the nesting by inverting the ifs and calling return results immediately? Thanks