Is repeated a lot, maybe go dry and pack it into a helper function/static methods that does the check before each controller method for you